// Get the path of the currently running do-file
local do_file_path `c(pwd)'

// Change the working directory to the location of the do-file
cd "`do_file_path'"

clear
use "proc_data\NTLHARM_ts20201121.dta"

rename *, lower
keep objectid gid_0 ntlharm1992-ntlharm2018

reshape long ntlharm, i(objectid gid_0) j(year)

rename ntlharm ntlh
label variable ntlh "NTL harmonized (DMSP & VIIRS): Li et al. 2018 version 2"

save "proc_data\NTLH9218.dta", replace